<include file="Public/header" title="轮播图列表" />
<div id="page-wrapper">
    <ol class="breadcrumb">
        <li class="breadcrumb-item">
            <a href="/admin.php">首页</a>
        </li>
        <li class="breadcrumb-item active">轮播图管理</li>
    </ol>
    <div class="row">
        <div class="col-lg-12">
            
        </div>
    </div>
    <div class="row">
        <div class="col-md-6">
            <a href="{:U('Banner/add')}" class="btn btn-success">添加轮播图</a>
        </div>
    </div>
    <table class="table table-hover table-striped">
        <thead>
            <tr>
                <th>编号</th>
                <th>图片</th>
                <th>操作</th> 
            </tr>
        </thead>
        <tbody>
        <foreach name="data" item="v">
                <tr>
                    <td>{$v.banner_id}</td>
                    <td><img src="{$v.img_url}"   style="width: 180px;height: 100px"></td>
                    <td><a href="{:U('banner/delete?id=')}{$v.banner_id}" style="color:red;" onclick="javascript:return del('您真的确定要删除吗？\n\n删除后将不能恢复!');">删除</a></td>
                </tr>
        </foreach>
        </tbody>
    </table>
    <div class="clearfix"></div>
</div>
<include file="Public/footer" />
